import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
@Injectable()
export class ConfigurationService {
    constructor(private configService: ConfigService) { }
    get redisHost(): string | undefined {
        return this.configService.get<string>('REDIS_HOST');
    }
    get redisPort(): number | undefined {
        return this.configService.get<number>('REDIS_PORT');
    }
    get redisPassword(): string | undefined {
        return this.configService.get<string>('REDIS_PASSWORD');
    }

    get jwtSecret(): string | undefined {
        return this.configService.get<string>('JWT_SECRET');
    }
}